package ir;

import java.util.HashMap;

public class CellLib {
	
	private static CellLib lmk;
	private HashMap<String, CellDef> dict = new HashMap<String, CellDef>();

	protected CellLib() {}
	
	public static CellLib getInstance() {
	   if(lmk == null) {
	      lmk = new CellLib();
	   }
	   return lmk;
	}
	
	public void addCellDef(CellDef d) {
		dict.put(d.getName(), d);
	}

	public CellDef getCellDef(String cellTypeName) {
		return dict.get(cellTypeName);
	}
}
